package main

import (
	"fmt"
	"unsafe"
)

type Book struct {
	Title  string
	Author string
	Page   uint
	Tag    []string
}

func main() {

	book := Book{
		"GO开发", "老俞", 10, []string{"G005", "xxxx"},
	}
	bookp := unsafe.Pointer(&book)
	tp := unsafe.Offsetof(book.Tag)
	fmt.Println(*(*[]string)(unsafe.Pointer(uintptr(bookp) + tp)))
}
